public class ques1 {
	public static void main (String args[]) {
		int i,k=1,add=0;
		for (i=1;i<=10;i++){
			k*=i;
			add+=k;
		}
		System.out.println(add);
	}
}
